﻿<%@ Page Title="Change Password of Logged in User" Language="C#" MasterPageFile="~/Layout.master"
    AutoEventWireup="true" CodeFile="ChangePassword.aspx.cs" Inherits="ChangePassword" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="PlaceHolder1" runat="Server">
    <div style="font-size: large">
        Change Password
    </div>
    <br />
    <div>
        <asp:Literal ID="ltMsg" runat="server" />
    </div>
    <br />
    <div>
        <fieldset>
            <legend>You are Required to Change your login Password By Force:</legend>
            <br />
            <table>
                <tr>
                    <td>
                        <strong>UserName:</strong>
                    </td>
                    <td>
                        <asp:TextBox ID="txtUserName" runat="server" ReadOnly="true" />
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td>
                        <strong>New Password:</strong>
                    </td>
                    <td>
                        <asp:TextBox ID="txtNewPassword" runat="server" TextMode="Password" />
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="reqNewPassword" runat="server" ControlToValidate="txtNewPassword"
                            Display="Dynamic" ErrorMessage="*" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <strong>Confirm New Password:</strong>
                    </td>
                    <td>
                        <asp:TextBox ID="txtConfirmNewPassword" runat="server" TextMode="Password" />
                    </td>
                    <td>
                        <asp:CompareValidator ID="valConfirmPassword" runat="server" Type="String" Operator="Equal"
                            Display="Dynamic" ControlToValidate="txtConfirmNewPassword" ControlToCompare="txtNewPassword"
                            ErrorMessage="Password not Matching" />
                    </td>
                </tr>
            </table>
            <hr />
            <asp:Button ID="btnChangePassword" runat="server" Text="Change Password" BorderStyle="NotSet"
                CommandName="ChangePassword" OnCommand="btnChangePassword_Command" /><br />
        </fieldset>
    </div>
</asp:Content>
